/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 按钮组样式 */
.button-group {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 按钮基本样式 */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s, opacity 0.3s;
}

/* 按钮悬停效果 */
button:hover {
    background-color: #45a049;
}

/* 游戏画布样式 */
#gameCanvas {
    border: 2px solid #333;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* 图表容器样式 */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    height: 300px;
}

/* 图表样式 */
#lossChart, #scoreChart {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
}

/* 进度显示容器样式 */
.progress-container {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 进度信息网格布局 */
.progress-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

/* 训练统计网格布局 */
.training-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 进度文本样式 */
.progress-container p {
    margin: 5px 0;
    font-size: 14px;
}

/* 模型加载对话框样式 */
.model-load-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 对话框内容样式 */
.dialog-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* 对话框按钮样式 */
.dialog-content button {
    margin: 10px;
    min-width: 120px;
}

/* 禁用按钮样式 */
button:disabled, button.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 禁用按钮悬停效果 */
button:disabled:hover, button.disabled:hover {
    background-color: #cccccc;
} 